package com.example.blog.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

//自定义系统运行时出现的异常
@EqualsAndHashCode(callSuper = true)
@Data
public class SystemException extends RuntimeException{
    private Integer code;
    public SystemException(Integer code, String message) {
        super(message);
        this.code=code;
    }
    public SystemException(String message, Throwable cause,Integer code) {
        super(message,cause);
        this.code=code;
    }
}
